package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;

/**
 * 企业部门管理表 t_company_dept
 * 
 * @author ruoyi
 * @date 2019-02-13
 */
public class TCompanyDept extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 部门编号 */
	private Long id;
	/** 机构名称 */
	private String deptName;
	/** 上级部门ID，一级机构为0 */
	private Long parentId;
	/** 排序 */
	private Integer orderNum;
	
	/** 是否删除  -1：已删除  0：正常 */
	private Integer sTATUS;

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setDeptName(String deptName) 
	{
		this.deptName = deptName;
	}

	public String getDeptName() 
	{
		return deptName;
	}
	public void setParentId(Long parentId) 
	{
		this.parentId = parentId;
	}

	public Long getParentId() 
	{
		return parentId;
	}
	public void setOrderNum(Integer orderNum) 
	{
		this.orderNum = orderNum;
	}

	public Integer getOrderNum() 
	{
		return orderNum;
	}
	public void setSTATUS(Integer sTATUS) 
	{
		this.sTATUS = sTATUS;
	}

	public Integer getSTATUS() 
	{
		return sTATUS;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptName", getDeptName())
            .append("parentId", getParentId())
            .append("orderNum", getOrderNum())
            .append("sTATUS", getSTATUS())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
